package com.ftg.learn.chapter13;

public class Dog extends DongWu {
    dogAge age1 = new dogAge();
    String name = "小白";

    String age = age1.Age("雌");

    public void gouJiao(){
        System.out.println("汪汪汪");

    }

    public void gouPao(){
        System.out.println("我能每小时跑60公里");
    }



}

class dogAge{
    public String Age(String age){
        if(age.equals("雌")){
            return "雌性";
        }else {
            return "雄性";
        }
    }


}